package com.spzx.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.api.domain.CategoryVo;
import com.spzx.product.domain.Category;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * ClassName: ICategoryService
 * Package: com.spzx.product.service
 * Description:
 *
 * @Author ycy
 * @Create 2024/8/5 18:24
 * @Version 1.0
 */
public interface ICategoryService extends IService<Category> {
    void exportData(HttpServletResponse response);

    void importData(MultipartFile file);

    List<CategoryVo> getOneCategory();

    List<CategoryVo> tree();

    /**
     * 获取分类下拉树列表
     * @param id
     * @return
     */
    public List<Category> treeSelect(Long id);

    List<Long> getAllCategoryIdList(Long categoryId);
}
